
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StorePinkRequest struct {

	Uid string `json:"uid" form:"uid"`

	Nickname string `json:"nickname" form:"nickname"`

	Avatar string `json:"avatar" form:"avatar"`

	OrderId string `json:"order_id" form:"order_id"`

	OrderIdKey string `json:"order_id_key" form:"order_id_key"`

	TotalNum string `json:"total_num" form:"total_num"`

	TotalPrice string `json:"total_price" form:"total_price"`

	Cid string `json:"cid" form:"cid"`

	Pid string `json:"pid" form:"pid"`

	People string `json:"people" form:"people"`

	Price string `json:"price" form:"price"`

	AddTime string `json:"add_time" form:"add_time"`

	StopTime string `json:"stop_time" form:"stop_time"`

	KId string `json:"k_id" form:"k_id"`

	IsTpl string `json:"is_tpl" form:"is_tpl"`

	IsRefund string `json:"is_refund" form:"is_refund"`

	Status string `json:"status" form:"status"`

	IsVirtual string `json:"is_virtual" form:"is_virtual"`

}

func (r *StorePinkRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StorePinkRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"nickname": "required",

		"avatar": "required",

		"order_id": "required",

		"order_id_key": "required",

		"total_num": "required",

		"total_price": "required",

		"cid": "required",

		"pid": "required",

		"people": "required",

		"price": "required",

		"add_time": "required",

		"stop_time": "required",

		"k_id": "required",

		"is_tpl": "required",

		"is_refund": "required",

		"status": "required",

		"is_virtual": "required",

	}
}

func (r *StorePinkRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StorePinkRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StorePinkRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
